conda_path=$(dirname $(dirname $(which conda)))
source "${conda_path}/etc/profile.d/conda.sh"
conda activate dl
python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. --pyi_out=. model_server.proto
sed -i '/.*import model_server_pb2 as model__server__pb2*/c\import service.pb.model_server_pb2 as model__server__pb2' model_server_pb2_grpc.py